# compiler
CC ?= ${CROSS-BULID}gcc
AR ?= ${CROSS-BULID}ar
CFLAGS := -Wall -O2
LDFLAGS ?= -L../lib

# libs in other dir
# LIB_PCA9685 = ../lib/libpca9685.a
# LIBS = ${LIB_PCA9685}

# current dir objects
OBJS = i2c.o pca9685.o

# default target
default: ${LIB_PCA9685}

# libs and objs
%.o:
${LIB_PCA9685}: pca9685.o i2c.o
#	${AR} rcs $@ $^
#	cp pca9685.h ../include

# cleanup
clean:
distclean: clean
	${RM} ${OBJS} ${LIB_PCA9685}
